package pw.goyd.game.logic;

import pw.goyd.protocol.core.Serializer;

/**
 * 设置名字请求
 *
 * @author StanWind
 */
public class SetNameRequest extends Serializer {
    private String nickname;

    public String getNickname() {
        return this.nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    @Override
    protected void write() {

    }

    @Override
    protected void read() {
        setNickname(readString());
    }
}
